"""
求出1-1/2+1/3-1/4…..1/100的和
"""
sum = 0
temp = 1
for i in range(1, 101):
    i *= temp
    sum += 1/i
    temp *= -1
print(sum)